﻿/// <summary>
/// https://leetcode-cn.com/problems/search-a-2d-matrix/
/// </summary>
public class Solution
{
    public bool SearchMatrix(int[][] matrix, int target)
    {
        foreach (var row in matrix)
        {
            foreach (var item in row)
            {
                if (item == target)
                    return true;
            }
        }
        return false;
    }
}